package com.queclink.ycm.common.utils;

import com.sun.jna.Library;
import com.sun.jna.Native;

/**
 * @description：
 * @author： Kobe.mo
 * @date： Created in 2021/10/25 10:36
 */
public class JNA {

    //Linux
    public interface LinuxJNA extends Library {
        LinuxJNA INSTANCE = (LinuxJNA) Native.loadLibrary("/lib/libua_encrypt.so", LinuxJNA.class);

        String quec_ua_encypt(String data_for_encrypt, byte data_len);
    }

    //windows
    public interface windowsJNA extends Library {
        windowsJNA INSTANCE = (windowsJNA) Native.loadLibrary("EncryptUA.dll", windowsJNA.class);

        String quec_ua_encypt(String data_for_encrypt, byte data_len, String encrypt_result);
    }
}
